import Hospital from './hospital.vue'
import HospitalSearch from './hospitalSearch.vue'
import HospitalEdit from './hospitalEdit.vue'
import HospitalAdd from './hospitalAdd.vue'
import HospitalView from './hospitalView.vue'

const components = [
  Hospital,
  HospitalSearch,
  HospitalEdit,
  HospitalAdd,
  HospitalView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}
export default main
